package com.gkj.blog.business.vo.condition;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gkj.blog.business.vo.entity.Role;
import com.gkj.blog.framework.object.AbstractDO;
import com.gkj.blog.framework.object.BaseConditionVO;

import java.util.Date;

public class RoleConditionVO extends BaseConditionVO {

    private Role role;

    public RoleConditionVO() {
        this.role = new Role();
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getDescription() {
        return role.getDescription();
    }

    public void setDescription(String description) {
        role.setDescription(description);
    }

    public Boolean getAvailable() {
        return role.getAvailable();
    }

    public void setAvailable(Boolean available) {
        role.setAvailable(available);
    }

    public Long getId() {
        return role.getId();
    }

    public void setId(Long id) {
        role.setId(id);
    }

    public Date getCreateTime() {
        return role.getCreateTime();
    }

    public void setCreateTime(Date createTime) {
        role.setCreateTime(createTime);
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    public Date getUpdateTime() {
        return role.getUpdateTime();
    }

    public void setUpdateTime(Date updateTime) {
        role.setUpdateTime(updateTime);
    }

}

